package com.wondertek.poms.dao.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.Data;

@Data
@Entity
@Table(name="PRD_RULE_CLASSIFY")
@DynamicUpdate
@DynamicInsert
@Proxy(lazy = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PrdRuleSecondClassify implements Serializable {
	private static final long serialVersionUID = -6609827902255646905L;
	@Id
	@Column(name="ID")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "PRD_RULE_CLASSIFY_SEQ")
	@SequenceGenerator(name = "PRD_RULE_CLASSIFY_SEQ", allocationSize = 1, sequenceName = "PRD_RULE_CLASSIFY_SEQ")
	private Long id;
	
	/**
	 * <b>Fields</b> key : 二级分类键
	 */
	@Column(name="CLASSIFY_KEY")
	private String key;
	
	/**
	 * <b>Fields</b> values : 二级分类值
	 */
	@Column(name="CLASSIFY_VALUES")
	private String values;
	
	/**
	 * <b>Fields</b> prdRuleId : 规则ID
	 */
	@Column(name="PRD_RULE_ID")
	private Long prdRuleId;
	
	/**
	 * <b>Fields</b> type : 1筛选条件2排除条件
	 */
	@Column(name="TYPE")
	private String type;
}
